<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Assignjobs.aspx.cs" Inherits="Admin_moredetails"
    MasterPageFile="~/Admin/AdminMasterLogin.master" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 162px;
        }
        .style2
        {
            width: 9px;
        }
        .style3
        {
        	color :#ffffff;
        }
        .style4
        {
            /*color: #003366;*/
            color:#180000 ;
            font-weight: 700;
            background-color: #E53333;
        }
        .style9
        {
            width: 120px;
        }
        .style10
        {
            width: 106px;
        }
        .style11
        {
            width: 80px;
            
        }
        .style12
        {
            width: 6px;
        }
        .style13
        {
            width: 162px;
             /*color: #003366;*/
            color: #180000 ;
            font-weight: bold;
            background-color: #E53333;
        }
        .style14
        {
           /* background-color: #CCCCCC;*/
        }
    </style>
</asp:Content>
<asp:Content ContentPlaceHolderID="mainpanel" runat="server">
    <table style="width: 100%;">
        <tr>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style13">
                <span class="style14">USER NAME</span>
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td style="font-weight: 700; color: #180000; background-color: #E53333">
                APPLIED JOBS DETAILS
                .....</td>
        </tr>
        <tr>
            <td align="left" valign="top" class="style1">
                <asp:TreeView ID="TrvUserName" runat="server" Height="317px" Width="215px" OnSelectedNodeChanged="TrvUserName_SelectedNodeChanged">
                </asp:TreeView>
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td valign="top" align="left">
                <table style="width: 100%;">
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;
                       </td>
                        <%--<td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>--%>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:GridView ID="DGridAppliedJobs" runat="server" CellPadding="4" ForeColor="#333333" DataKeyNames="MyJobId"
                                GridLines="None" Width="100%" AutoGenerateColumns="False" 
                                onrowdatabound="DGridAppliedJobs_RowDataBound1">
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="MyJobId" HeaderText="MyJobId" Visible="False" />
                                    <asp:BoundField DataField="CompanyName" HeaderText="Company Name" />
                                    <asp:BoundField DataField="City" HeaderText="City" />
                                    <asp:BoundField DataField="Title" HeaderText="Job Title" />
                                    <asp:BoundField DataField="Applydate" HeaderText="Apply Date" />
                                    <asp:TemplateField HeaderText="Assign">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="ChkAssign" runat="server" Checked="false" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#E53333" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <%--<td class="style3">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>--%>
                        <td align="right">
                           
                            <asp:Button ID="BtnAssign" runat="server" Text="Assign Jobs To User" 
                                onclick="BtnAssign_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style4" colspan="3" align="center" background-color: "#E53333">
                            USER DETAILS .....
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style3" colspan="3" id="tdJobseekerDetails" visible="false" runat="server">
                            <table cellpadding="3" cellspacing="3" style="width: 100%;">
                                <tr class="style3">
                                    <td class="style10" align="right" valign="top">
                                        User&nbsp; Name
                                    </td>
                                    <td class="style12">
                                        :
                                    </td>
                                    <td class="style9" align="left" valign="top">
                                        <%if (DsetAppliedJobs.Tables.Count > 0)
                                          { %>
                                        <%if (DsetAppliedJobs.Tables[0].Rows.Count > 0)
                                          { %>
                                        <%=DsetAppliedJobs.Tables[0].Rows[0]["Username"].ToString()%>
                                        <%} %>
                                        <%} %>
                                    </td>
                                    <td class="style11" align="right" valign="top">
                                        City</td>
                                    <td class="style2">
                                        :
                                    </td>
                                    <td align="left" valign="top">
                                        <%if (DsetAppliedJobs.Tables.Count > 0)
                                          { %>
                                        <%if (DsetAppliedJobs.Tables[0].Rows.Count > 0)
                                          { %>
                                        <%=DsetAppliedJobs.Tables[0].Rows[0]["JobSeekerCity"].ToString()%>
                                        <%} %>
                                        <%} %>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style10" align="right" valign="top">
                                        Education
                                    </td>
                                    <td class="style12">
                                        :
                                    </td>
                                    <td class="style9" align="left" valign="top">
                                        <%if (DsetAppliedJobs.Tables.Count > 0)
                                          { %>
                                        <%if (DsetAppliedJobs.Tables[0].Rows.Count > 0)
                                          { %>
                                        <%=DsetAppliedJobs.Tables[0].Rows[0]["EducationLevelName"].ToString()%>
                                        <%} %>
                                        <%} %>
                                    </td>
                                    <td class="style11" align="right" valign="top">
                                        Email</td>
                                    <td class="style2">
                                        :
                                    </td>
                                    <td align="left" valign="top">
                                        <%if (DsetAppliedJobs.Tables.Count > 0)
                                          { %>
                                        <%if (DsetAppliedJobs.Tables[0].Rows.Count > 0)
                                          { %>
                                        <a href='../admin/adminemail.aspx?email=<%=DsetAppliedJobs.Tables[0].Rows[0]["JobSeekerEmail"].ToString()%>'><%=DsetAppliedJobs.Tables[0].Rows[0]["JobSeekerEmail"].ToString()%></a>
                                        <%} %>
                                        <%} %>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style10" align="right" valign="top">
                                        Other Education
                                    </td>
                                    <td class="style12">
                                        :
                                    </td>
                                    <td class="style9" align="left" valign="top">
                                        <%if (DsetAppliedJobs.Tables.Count > 0)
                                          { %>
                                        <%if (DsetAppliedJobs.Tables[0].Rows.Count > 0)
                                          { %>
                                        <%=DsetAppliedJobs.Tables[0].Rows[0]["JobSeekerEducationOthers"].ToString()%>
                                        <%} %>
                                        <%} %>
                                    </td>
                                    <td class="style11"  align="right" valign="top">
                                        &nbsp;
                                        Phone</td>
                                    <td class="style2">
                                        :
                                    </td>
                                    <td align="left" valign="top">
                                       <%if (DsetAppliedJobs.Tables.Count > 0)
                                          { %>
                                        <%if (DsetAppliedJobs.Tables[0].Rows.Count > 0)
                                          { %>
                                        <%=DsetAppliedJobs.Tables[0].Rows[0]["JobSeekerPhone"].ToString()%>
                                        <%} %>
                                        <%} %>
                                       
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style10" align="right" valign="top">
                                        Regn Date
                                    </td>
                                    <td class="style12">
                                        :
                                    </td>
                                    <td class="style9" align="left" valign="top">
                                        <%if (DsetAppliedJobs.Tables.Count > 0)
                                          { %>
                                        <%if (DsetAppliedJobs.Tables[0].Rows.Count > 0)
                                          { %>
                                        <%=DsetAppliedJobs.Tables[0].Rows[0]["Registrationdate"].ToString()%>
                                        <%} %>
                                        <%} %>
                                    </td>
                                    <td class="style11" align="right" valign="top">
                                       
                                        Key Skill</td>
                                    <td class="style2">
                                      :
                                       </td>
                                    <td align="left" valign="top" style="text-align:justify;">
                                       <%if (DsetAppliedJobs.Tables.Count > 0)
                                          { %>
                                        <%if (DsetAppliedJobs.Tables[0].Rows.Count > 0)
                                          { %>
                                        <%=DsetAppliedJobs.Tables[0].Rows[0]["JobSeekerKeySkills"].ToString()%>
                                        <%} %>
                                        <%} %>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
